< previous page page_824 next page >

Page 824
0824-01.jpg
Figure C.11
You can use the Visual Data Manager Add-In to develop SQL queries.
To develop and test SQL statements, first enter the statement in the text box of the SQL dialog box (the one on the right in Figure C.11). When you're ready to test the statement, click the Execute SQL button. If you're developing a retrieval query, a dynaset is created and the results are displayed in a data entry form (or a grid) if the statement has no errors. If you're developing an action query, a message box appears, telling you that the execution of the query is complete (again, assuming that the statement is correct). If you have an error in your statement, a message box appears informing you of the error.
The Visual Data Manager Add-In also includes a Query Builder. You can access the Query Builder (shown in Figure C.12) by choosing _Query Builder from the Utilities menu of the Visual Data Manager. To create a query with the Query Builder, follow these steps:
1. Select the tables to include from the Tables list.
2. Select the fields to include from the Fields to Show list.
3. Set the WHERE clause (if any) using the Field Name, Operator, and Value drop-down lists at the top of the dialog box.
4. Set the table JOIN conditions (if any) by clicking the Set Table Joins command button.
5. Set a single-field ORDER BY clause (if any) by selecting the field from the Order By Field drop-down box and selecting either the Asc or Desc option.
6. Set a single GROUP BY field (if any) by selecting the field from the Group By Field drop-down box.

 
< previous page page_824 next page >